﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace GaugeEngine.Graphics
{
    public class Sprite
    {
        private Bitmap m_image;
        public Bitmap Image
        {
            get { return m_image; }
        }

        private Rectangle m_region;
        private bool m_animated;
        private int m_animation_frame = 0;        
        private int m_stride;

        public Sprite(Bitmap b)
        {
            m_image = b;
            m_region = new Rectangle(0,0, b.Width, b.Height);
            m_animated = false;
        }

        public Sprite(Bitmap b, Rectangle region)
        {
            m_image = b;
            m_region = region;
            m_animated = false;
        }
    }

    public class SpriteList
    {
        private Dictionary<string, Sprite> m_sprites;

        public SpriteList()
        {
            m_sprites = new Dictionary<string, Sprite>();
        }

        public Sprite this[string s]
        {
            get { return m_sprites[s]; }
        }

        public void Add(string s, Sprite spr)
        {
            m_sprites.Add(s, spr);
        }
    }
}
